<?php
class Modblogs extends CI_Controller {
    private $params =array();
    public function index($params) {
        // Duyet mang params de kiem tra du lieu duoc gui den da chuan chua
        foreach($params as $key=> $param){
            echo $key.' : ';
            echo $param.'<br/>';
        }
        //thuc hien yeu cau tu bien param ma nguoi dung yeu cau
        if($params[0] == 'param1')
            $data['daxuly'] = 'Codeigniter HMVC voi param1';
        else 
            $data['daxuly'] = 'Codeigniter HMVC khong phai param1';
        $this->load->view('modules/viewmodblogs',$data);
    }
    
    

}